package com.hps.demo.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.Map;

/**
 * @author heps
 * @date 2019/11/23 17:01
 */
@FeignClient(name = "order-service")
@Component
public interface OrderClient {

    @GetMapping("/api/order/{id}")
    Map<String, Object> getOrder(@PathVariable(("id")) Long id);
}
